// @description  发起邀请
// @author 冯世玉
// @date 2018-7-23

import axios from "../index.js"

var initiateInvitation= {
    // 生成邀请码
	inviteCodeSet:function(data,success,failure){
		return axios.postJson("/admin/inviteCodeSet",data,success,failure);
    },
   
    // 邀请管理
	inviteCourseList:function(data,success,failure){
		return axios.postJson("/admin/inviteCourseList",data,success,failure);
    },
   
    // 批量导入
	inviteCourseMemberExcel:function(data,success,failure){
		return axios.post("/admin/inviteCourseMemberExcel",data,success,failure);
    },
   
    // 单课程/合并邀请（单课程/合并邀请再次邀请）
	inviteMembers:function(data,success,failure){
		return axios.postJson("/admin/inviteMembers",data,success,failure);
    },
   
    //报名中课程已邀请名单
    invitingCourseMember:function(data,success,failure){
		return axios.post("/admin/invitingCourseMember",data,success,failure);
    },

    //报名中课程已邀请学员单课程/合并再次邀请
    inviteMemberAgain:function(data,success,failure){
		return axios.postJson("/admin/inviteMemberAgain",data,success,failure);
    },

    //已接受邀请名单
    invitedMember:function(data,success,failure){
		return axios.post("/admin/invitedMember",data,success,failure);
    },
}

export default initiateInvitation